Skip to content

Fixed Hyphen Issue (Issue #180)#181

Open
andrewozimek wants to merge 1 commit into
IdreesInc:mainfrom
andrewozimek:main
Open

Fixed Hyphen Issue (Issue #180)#181
andrewozimek wants to merge 1 commit into
IdreesInc:mainfrom
andrewozimek:main

Conversation

@andrewozimek

Copy link
Copy Markdown

#180

Fixed the bug where long hyphens (16+) were vanishing.

Turns out it was hitting a hard limit in HarfBuzz/Kitty. We were using GSUB to swap ligatures for a string of spaces to get the width right, but that caps out at 15 glyphs. Anything longer just failed silently.

The fix was simple: I stopped the ccmp expansion and just set the advance width directly on the glyph. The art is already the right size, so now it just works without the extra steps. This covers arrows, hyphens, and whatever else, regardless of length.

@andrewozimek andrewozimek changed the title Fixed Hyphen Issue (Issue #180) Fixed Hyphen Issue (Issue #181) Apr 23, 2026
@andrewozimek andrewozimek changed the title Fixed Hyphen Issue (Issue #181) Fixed Hyphen Issue (Issue #180) Apr 23, 2026
@Dheatly23

Copy link
Copy Markdown
Contributor

Isn't it undoing this fix? (Also #157). I know it's hacky, but if there's better fix i'm all ears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants